/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.io.Serializable;
public class Tda_tipoGasolina implements Serializable {
	public Tda_tipoGasolina() {
	}
	
	private void this_setOwner(Object owner, int key) {
		if (key == orm.ORMConstants.KEY_TDA_TIPOGASOLINA_TDP_PRECIOPRE) {
			this.tdp_preciopre = (orm.Tdp_precio) owner;
		}
	}
	
	org.orm.util.ORMAdapter _ormAdapter = new org.orm.util.AbstractORMAdapter() {
		public void setOwner(Object owner, int key) {
			this_setOwner(owner, key);
		}
		
	};
	
	private int tga_id;
	
	private Integer tga_octanage;
	
	private String tga_nombre;
	
	private orm.Tdp_precio tdp_preciopre;
	
	private void setTga_id(int value) {
		this.tga_id = value;
	}
	
	public int getTga_id() {
		return tga_id;
	}
	
	public int getORMID() {
		return getTga_id();
	}
	
	/**
	 * Determina el octanaje de la gasolina
	 */
	public void setTga_octanage(int value) {
		setTga_octanage(new Integer(value));
	}
	
	/**
	 * Determina el octanaje de la gasolina
	 */
	public void setTga_octanage(Integer value) {
		this.tga_octanage = value;
	}
	
	/**
	 * Determina el octanaje de la gasolina
	 */
	public Integer getTga_octanage() {
		return tga_octanage;
	}
	
	/**
	 * Nombre de la bencina, que por parametros de octanage, es numerica ( 05,07,99  )
	 */
	public void setTga_nombre(String value) {
		this.tga_nombre = value;
	}
	
	/**
	 * Nombre de la bencina, que por parametros de octanage, es numerica ( 05,07,99  )
	 */
	public String getTga_nombre() {
		return tga_nombre;
	}
	
	public void setTdp_preciopre(orm.Tdp_precio value) {
		if (tdp_preciopre != null) {
			tdp_preciopre.tda_tipoGasolina.remove(this);
		}
		if (value != null) {
			value.tda_tipoGasolina.add(this);
		}
	}
	
	public orm.Tdp_precio getTdp_preciopre() {
		return tdp_preciopre;
	}
	
	/**
	 * This method is for internal use only.
	 */
	public void setORM_Tdp_preciopre(orm.Tdp_precio value) {
		this.tdp_preciopre = value;
	}
	
	private orm.Tdp_precio getORM_Tdp_preciopre() {
		return tdp_preciopre;
	}
	
	public String toString() {
		return String.valueOf(getTga_id());
	}
	
}
